@echo off
set d=%~d1
set p=%~p1
set n=%~n1
set x=%~x1

@echo %0 %1 %2 %3 %4
pause
cd /d %~dp1
rem Ha a file neveben elol szamok vannak, akkor nem fut ra.
set isdate=0
set /a isdate=1%n:~0,6%+0 2>nul
if "%isdate%" == "0" (
	goto end
) 
rem OK.
set dirName=%n:~0,6%
mkdir %~dp1%dirName% 2>nul >nul
move "%~dpnx1" "%~dp1%dirName%"

:end
